﻿@model PlmConstructionlogcivilViewModel
@{
    Layout = null;
    ViewBag.Title = "施工日志-土建列表";

}

@*   @using (Html.BeginForm("ConstructionLogCivilList", "PlmConstructionLogCivil", null, FormMethod.Post, new { id = "search", onsubmit = "return navTabSearch(this);" }))
        {

        }*@ @* <form onsubmit="return navTabSearch(this);" action="ylx_ctgl_px.html" method="post">*@
@using (Html.BeginForm("SplitPage", "PlmConstructionLogCivil", null, FormMethod.Post, new { id = "pagerForm", onsubmit = "return navTabSearch(this);" }))
{
    <input type="hidden" name="pageNum" value="1" />
    <input type="hidden" name="numPerPage" value="@(ViewBag.numPerPage)" />
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                @*<td>总监办：</td>
                        <td>
                            <select name="type" class="required combox">
                                <option value="YLZJ-1">YLZJ-1</option>
                                <option value="YLZJ-2">YLZJ-2</option>
                            </select>
                        </td>
                        <td>施工日期：</td>
                        <td>
                            <input type="text" class="date"  name="time" value="@(ViewBag.time)" />
                        </td>
                        <td>
                            <button type="submit" class="btn btn-success btn-xs">搜索</button>
                        </td>*@
            </tr>
        </table>
    </div>
}
@*</form>*@
<div class="panelBar">
    <ul class="toolBar">
        @*<li><a class="add" href="@Url.Action("ConstructionLogCivilAdd", "PlmConstructionLogCivil", new { target = "add", templeteId = ViewBag.templeteId })"  target="navTab"  title="添加"><span>添加</span></a></li>*@
        <li>
            @Html.PermissionButton("PersonnelLog.PlmConstructionLogCivil.Create", "PersonnelLog_PlmConstructionLogCivil_ConstructionLogCivilAdd",
                 Url.Action("ConstructionLogCivilAdd", "PlmConstructionLogCivil", new { target = "add", templeteId = ViewBag.templeteId }),
                    "添加",
                    new Dictionary<string, object>
                    {
                        {"class","add"} ,{"rel","tjrz_add"} ,{"mask","true"},{"target","dialog"},{"width","790"},{"height","660"},{"title","添加"}
                    })
        </li>
        <li>
            @Html.PermissionButton("PersonnelLog.PlmConstructionLogCivil.Delete", "PersonnelLog_PlmConstructionLogCivil_ConstructionLogCivilDelete",
                 Url.Action("ConstructionLogCivilDelete", "PlmConstructionLogCivil", new { constructionDate = "{sid_user}" }),
                    "删除",
                    new Dictionary<string, object>
                    {
                        {"class","delete"} ,{"mask","true"},{"title","确定要删除该条记录吗?"},{"target","ajaxTodo"}
                    })
        </li>
        <li>
            @Html.PermissionButton("PersonnelLog.PlmConstructionLogCivil.Edit", "PersonnelLog_PlmConstructionLogCivil_ConstructionLogCivilEdit",
                             Url.Action("ConstructionLogCivilAdd", "PlmConstructionLogCivil", new { target = "edit", templeteId = ViewBag.templeteId, constructionDate = "{sid_user}" }),
                    "修改",
                    new Dictionary<string, object>
                    {
                        {"class","edit"} ,{"rel","tjrz_edit"} ,{"mask","true"},{"target","dialog"},{"width","790"},{"height","660"},{"warn","请选择一条信息"}
                    })
        </li>
        <li>
            @Html.PermissionButton("PersonnelLog.PlmConstructionLogCivil.Comment", "PersonnelLog_PlmConstructionLogCivil_ConstructionLogCivilComment",
                    Url.Action("ConstructionLogCivilComment", "PlmConstructionLogCivil", new { constructionDate = "{sid_user}" }),
                    "评述",
                    new Dictionary<string, object>
                    {
                        {"class","edit"} ,{"rel","ids"},{"mask","true"},{"target","dialog"},{"warn","请选择一条信息"},{"width","400"},{"height","320"}
                    })
        </li>
        <li>
            @Html.PermissionButton("PersonnelLog.PlmConstructionLogCivil.Detail", "PersonnelLog_PlmConstructionLogCivil_ConstructionLogCivilDetail",
                    Url.Action("ConstructionLogCivilDetail", "PlmConstructionLogCivil", new { constructionDate = "{sid_user}" }),
                    "查看",
                    new Dictionary<string, object>
                    {
                        {"class","detail"},{"rel","tjrz_detail"} ,{"mask","true"},{"target","dialog"},{"width","790"},{"height","660"},{"warn","请选择一条信息!"}
                    })
        </li>
    </ul>
</div>
<table class="table" width="100%" layouth="77">
    <thead>
        <tr>
            <th align="center" style="display:none">
            </th>
            <th align="center">
                序号
            </th>
            <th align="center">
                总监办
            </th>
            <th align="center">
                施工日期
            </th>
            @*<th align="center">
                操作
            </th>*@
        </tr>
    </thead>
    <tbody>
        <!--在评述前施工单位可进行编辑、删除操作，监理单位只有查看、评述操作-->
        @{ int num = (ViewBag.pageNum - 1) * ViewBag.numPerPage;}
        @foreach (var item in Model.ThePlmConstructlogcivilList)
        {
            num += 1;
            <tr target="sid_user" rel="@item.Clc_ConstructionDate.ToString("yyyy-MM-dd")$@item.Clc_DirectorSection">
                <td style="display:none">
                    <input name="ids" value="@item.Clc_ConstructionDate.ToString("yyyy-MM-dd")$@item.Clc_DirectorSection" type="checkbox">
                </td>
                <td>@num
                </td>
                <td>@item.Clc_DirectorSection
                </td>
                <td>@item.Clc_ConstructionDate.ToString("yyyy-MM-dd")
                </td>
                @*<td>*@
                    @*<a title="评述" mask="true" target="dialog" width="600" height="450" rel="dlg_sgrztjps" href="@Url.Action("ConstructionLogCivilComment", "PlmConstructionLogCivil", new { directorSection = @item.Clc_DirectorSection, constructionDate = @item.Clc_ConstructionDate.ToString("yyyy-MM-dd") })" class="btnInfo">评述</a>*@
                    @*<a title="编辑" target="navTab" href="@Url.Action("ConstructionLogCivilAdd", "PlmConstructionLogCivil", new { target = "edit", templeteId = ViewBag.templeteId, directorSection = @item.Clc_DirectorSection, constructionDate = @item.Clc_ConstructionDate.ToString("yyyy-MM-dd") })" class="btnEdit">
                        编辑</a>
                </td>*@
            </tr>

        }
    </tbody>
</table>
<div class="panelBar" style="border-bottom:none;">
    <div class="pages" style="float: right">
        <span>显示</span>
        <select class="splitcombox" id="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
            <option value="10" @(ViewBag.numPerPage == 10 ? "selected='selected'" : "")>10</option>
                <option value="20" @(ViewBag.numPerPage == 20 ? "selected='selected'" : "")>20</option>
                <option value="50" @(ViewBag.numPerPage == 50 ? "selected='selected'" : "")>50</option>
        </select>
        <span>条，共@(ViewBag.pagenumshown)页,@(ViewBag.totalcount)条</span>
    </div>
    <div class="pagination" style="margin:0px;float:left; margin-left:35%" targettype="navTab" totalcount="@(ViewBag.totalcount)" numperpage="@(ViewBag.numPerPage)" pagenumshown="10" currentpage="@(ViewBag.pageNum)">
    </div>
</div>
